<template>
  
</template>

<script>
export default {
props:["singeid"],
data(){
    return{
        list:[],
        loading:false,
        finished:false,
        page:1,
    };
},
methods:{
    getData(){
        this.$request(
            "get",
            "/singer/song?singermid="+this.singeid+"&page"+this.page+"&num=30"
        ).then((res)=>{
            this.list=this.list.concat(res.data.list);
            this.loading=false;
            this.page++;
            if(res.data.list.length == 0){
                this.finished=true;
            }
        });
    },
    onload(){
        setTimeout(()=>{
            this.getData();
            this.loading=true;
        },1000);
    },
},
};
</script>
<style scoped>

</style>
<style>

</style>